﻿using RSSReader.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RSSReader.Service
{
  public interface IRssService
  {

    #region User management

    ApplicationUser GetUser(int id);
    ApplicationUser GetUser(string userName, string password);
    int AddUser(ApplicationUser user);
    void DeleteUser(int userId);

    #endregion

    #region Subscription management

    IEnumerable<Source> GetSubscription(int userId);
    IEnumerable<Source> AddSubscription(IEnumerable<string> sourceLinks, int userId);
    void DeactivateSubscriptions(IEnumerable<string> sourceLinks, int userId);

    #endregion

    #region Feeds management

    void NewRead(IEnumerable<string> feeds, int userId);
    Dictionary<string, UserArticle> GetArticlesUserInfo(IEnumerable<string> feeds, int userId);
    void AddFavorite(IEnumerable<string> feeds, int userId);
    void RemoveFavorite(IEnumerable<string> feeds, int userId);

    #endregion

  }
}
